﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OutillageTests;
using System.Threading;
using GestionnaireTUPleiade.Forms;

namespace GestionnaireTUPleiade
{
    public partial class MDIMaster : Form
    {
        private Core _core = Core.GetInstance();
        
        public MDIMaster()
        {
            InitializeComponent();
        }

        private void générerXMLParamétrageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_core.GetBusinessMap().Count == 0)
                _core.LoadBusinessMap("Adp.Pleiade.Metier*Services.dll");

            _core.GenerateXML();  
        }

        private void générerTestsUnitairesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_core.GetBusinessMap().Count == 0)
                _core.LoadBusinessMap("Adp.Pleiade.Metier*Services.dll");
            _core.GenerateUTClasses();
        }

        private void gérerCouvertureTUToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormGestionCouvertureTU newForm = new FormGestionCouvertureTU();
            newForm.MdiParent = this;
            newForm.Show();
        }

        private void cheminDaccèsDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCheminDLLMetier newForm = new FormCheminDLLMetier();
            newForm.MdiParent = this;
            newForm.Show();
        }

        private void aProposToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAPropos newForm = new FormAPropos();
            newForm.MdiParent = this;
            newForm.Show();
        }
    }
}
